package com.gh.service;

import com.gh.entity.BorrowInfo;
import com.gh.entity.Lend;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gh.vo.BorrowInfoApprovalVo;

import java.math.BigDecimal;
import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 标的准备表 服务类
 * </p>
 *
 * @author Eric
 * @since 2021-09-06
 */
public interface LendService extends IService<Lend> {

    void createLend(BorrowInfoApprovalVo borrowInfoApprovalVo, BorrowInfo borrowInfo) throws ParseException;

    List<Lend> selectList();

    Map<String, Object> show(Long id);

    BigDecimal getInterestCount(BigDecimal invest, BigDecimal yearRate, Integer totalMonth, Integer returnMethod);

    void makeLoan(String id);
}
